<div id='comment'>
         <h3>所有评论</h3>
         <hr>
         <div>
       <?php 
      if(!empty($is_comment)){
	       foreach ($is_comment as $pid)
	       {
	           echo "    <p>".$pid['nickname']."    ".date('Y/m/d',$pid['created'])."                    ".$pid['body']."</p>"; 
	           if(!empty($pid['child'])){
	           	   foreach($pid['child'] as $row){
	           	  	echo "    <p style='background:#ccc;'>".$row['nickname']."　".date('Y/m/d',$pid['created'])."                 ".$row['body']."</p>";
	           	   }
	           }
	       } 
      }else{
      	echo 'None';
      }  
           ?>
         </div>
         <hr>
<form action="<?PHP echo site_url('home/comment_post'); ?>" method="post">
         昵称:<br>
         <input type="text" name='nickname' /><br>
         电子信箱：<br>
         <input type="text" name="email" /><br>
         评论内容:<br>
         <textarea name="body" cols=60 rows=10></textarea><br>
         <input type="hidden" name="id" value="<?php echo $article['id'];?>">
         <input type="hidden" name="valicode" value="<?php echo $valicode;?>">
         <input type="hidden" name="pid" value=0 />
         <input type="submit" value="提交">
         </form>
</div>
</div>